import java.sql.*; 

public class DBConnect {
	private static final String DB_URL = "jdbc:pointbase:server://localhost:9092/staplerzdb";
	private static final String USER = "pbpublic";
	private static final String PASSWORD = "pbpublic";
	
	public static void main(String[] args) throws Exception {
		System.out.println("Lab02 started");
		Class.forName("com.pointbase.jdbc.jdbcUniversalDriver");
		Connection connection = DriverManager.getConnection(DB_URL, USER, PASSWORD);
		Statement statement = connection.createStatement();
		ResultSet resultSet = statement.executeQuery("select * from USERS");
		statement.close();
		connection.close();
		System.out.println("Lab02 finished");
	}

}
